package com.xh.clean.modular.clean.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.xh.clean.modular.clean.Vo.PatrolVo;
import com.xh.clean.modular.clean.model.Patrol;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 巡视表 Mapper 接口
 * </p>
 *
 * @author 杨杰123
 * @since 2018-06-24
 */
public interface PatrolMapper extends BaseMapper<Patrol> {

    List<Map<String, Object>> selectPatrols(@Param("page") Page<Patrol> page, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("orderByField") String orderByField, @Param("isAsc") boolean asc);

    List<Map<String, Object>> selectPatrolsByPatrolVo(@Param("page") Page<PatrolVo> page, @Param("patrolVo") PatrolVo patrolVo, @Param("orderByField") String orderByField, @Param("isAsc") boolean asc);

    List<Map<String, Object>> selectPatrolRanking(@Param("page") Page<PatrolVo> page, @Param("patrolVo") PatrolVo patrolVo, @Param("orderByField") String orderByField, @Param("isAsc") boolean asc);
}
